import fetch from '@/axios/fetch'


export function getClusterList (obj) {
  return fetch({
    url: '/api/cluster/list',
    method: 'get'
  })
}

export function getCluster (obj) {
  return fetch({
    url: '/api/cluster/getCluster/'+obj,
    method: 'get'
  })
}

export function save (obj) {
  return fetch({
    url: '/api/cluster/save',
    method: 'put',
    data: obj
  })
}

export function remove (obj) {
  return fetch({
    url: '/api/cluster/delete/'+obj,
    method: 'delete'
  })
}
